<form id="orderForm" class="order-form">
  <div class="order-form__item">
    <label for="">人员：</label>
    <div class="order-form__ipt">
      <input type="text" name="people" value="<%= locals.people %>" readonly />
      <a class="order-form__button" href="./list.html?type=people">选人</a>
    </div>
  </div>
  <div class="order-form__item">
    <label for="">餐厅：</label>
    <div class="order-form__ipt">
      <input
        type="text"
        name="shop"
        value="<%= locals.restaurant && locals.restaurant.value %>"
        readonly
      />
      <a class="order-form__button" href="./list.html?type=restaurant">选餐厅</a>
    </div>
  </div>

  <div class="order-form__item">
    <label for="">套餐：</label>
    <div class="order-form__ipt">
      <input type="text" name="meal" value="<%= locals.package %>" readonly />
      <% if (locals.restaurant) { %>
        <input
          id="package"
          type="button"
          data-id="<%= locals.restaurant && locals.restaurant.id %>"
          class="order-form__button"
          value="选套餐"
        />
      <% } else { %>
        <input
          id="package"
          type="button"
          data-id="<%= locals.restaurant && locals.restaurant.id %>"
          class="order-form__button"
          disabled="true"
          value="选套餐"
        />
      <% } %>
    </div>
  </div>
  <input type="hidden" name="price" value="{{= it.menu.price}}" />
  <% if (locals.people &&locals.restaurant && locals.package) { %>
    <input type="submit" value="确认" />
  <% } else { %>
    <input type="submit" disabled="true" value="确认" />
  <% } %>
</form>
